# docker build -f Dockerfile -t m986883511/sphinx:all .
FROM sphinxdoc/sphinx-latexpdf
MAINTAINER author "https://github.com/m986883511"

RUN pip3 install sphinx-autobuild -i https://pypi.tuna.tsinghua.edu.cn/simple/
RUN pip3 install sphinxcontrib-plantuml -i https://pypi.tuna.tsinghua.edu.cn/simple/

COPY sources.list /etc/apt/sources.list
RUN apt-get update -y
RUN apt-get upgrade -y
# https://yarnaudov.com/fix-java-jdk-jre-debian-ubuntu-install.html
RUN mkdir -p /usr/share/man/man1
RUN apt install default-jre -y
# https://www.osgeo.cn/build-the-docs/Using_Sphinx/UsingGraphicsAndDiagramsInSphinx.html#using-plantuml
ENV GRAPHVIZ_DOT=/usr/bin/dot
COPY plantuml.jar /tmp/plantuml.jar
EXPOSE 9001
